# -*- coding:utf-8 -*-

# -------------------腾讯短信SDK配置----------------------
TENCENT_SMS_APP_ID = 1400529835  # 腾讯云短信应用的id
TENCENT_SMS_APP_KEY = '603f6477b4a7c7985f44f6ae24a2072c'  # 腾讯云短信应用的key
TENCENT_SMS_SING = '空山无人'  # 腾讯云短信应用的签名内容

# -----------------------腾讯cos对象存储------------------------
TENCENT_COS_SECRET_ID = 'AKIDlJbdPvADzUifMmwoQknZ5JHzQbWAXdSz'
TENCENT_COS_SECRET_KEY = 'IL6aniNYT7VcT4PTGm0ye3B3i6C4fz1m'

# -------------------------redis---------------------------
CACHES = {
    "default": {
        "BACKEND": "django_redis.cache.RedisCache",
        "LOCATION": "redis://127.0.0.1:6379",  # 安装redis的主机的 IP 和 端口
        "OPTIONS": {
            "CLIENT_CLASS": "django_redis.client.DefaultClient",
            "CONNECTION_POOL_KWARGS": {
                "max_connections": 100,
                "encoding": 'utf-8'
            },
            # "PASSWORD": "foobared"  # redis密码
        }
    }
}
